<template>
  <Carousel v-model="start" loop autoplay :height="carouselHeight">
      <CarouselItem v-for="item in carouselList" :key="item.url">
        <div class="carousell" :style="{background: `url(${item.url})`}"></div>
      </CarouselItem>
  </Carousel>
</template>
<script>
  export default {
    data () {
      return {
        
      }
    },
    props:{
      carouselHeight:{
        type: Number,
        default: 0
      },
      start:{
        type: Number,
        default: 0
      },
      carouselList: {
        type: Array,
        default: []
      }
    },
    
  }
</script>
<style lang="less" scoped>
  .carousell {
    height: 100%;
    padding-right:4px;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
  }
  
</style>